package com.itheima.d09_lambda_constructor;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Player {

    private String name;
    private int age;



    public void swim(){
        System.out.println("Player " + name + " is swimming...");
    }

}
